Page({
  data: {
    orderId: null
  },

  onLoad: function(options) {
    if (options.orderId) {
      this.setData({
        orderId: options.orderId
      });
    }
  },

  // 返回上一页
  goBack: function() {
    wx.switchTab({
      url: '/pages/index/index'
    });
  },

  // 查看订单详情
  viewOrder: function() {
    wx.redirectTo({
      url: '/pages/ucenter/order/order'
    });
  }
}); 